package com.cash.loan.modular.cash.transfer;

import com.alibaba.fastjson.JSONArray;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
 * @author Administrator
 * @Date 2018-07-20 9:57
 */
public class UpdateStrategyDto {

    @NotEmpty(message = "id不能为空")
    private Long id;

    @NotBlank(message = "标题不能为空")
    private String title;

    private List<ImageItem> url;

    @NotEmpty(message = "内容不能为空")
    private JSONArray content;

    private Integer cateId;

    public UpdateStrategyDto() {
    }

    public UpdateStrategyDto(Long id, String title, List<ImageItem> url,JSONArray content,Integer cateId) {
        this.id = id;
        this.title = title;
        this.url = url;
        this.content = content;
        this.cateId = cateId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ImageItem> getUrl() {
        return url;
    }

    public void setUrl(List<ImageItem> url) {
        this.url = url;
    }

    public JSONArray getContent() {
        return content;
    }

    public void setContent(JSONArray content) {
        this.content = content;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    @Override
    public String toString() {
        return "UpdateStrategyDto{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", content=" + content +
                ", cateId=" + cateId +
                '}';
    }
}
